package com.zjjh.controller;

import com.zjjh.controller.remote.PrividerFeginClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.client.loadbalancer.LoadBalancerClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloWorldController {

    @Autowired
    PrividerFeginClient prividerFeginClient;

    @GetMapping("/pay/hello")
    @ResponseBody
    public Object hello() {
        return prividerFeginClient.get();
    }

    @Autowired
    private LoadBalancerClient loadBalancerClient;

    @GetMapping("/pay/hello2")
    @ResponseBody
    public Object hello2() {
        return "hello2";
    }

}
